package com.taoym.voucher.xcx.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.taoym.voucher.xcx.domain.XcxActivityOrder;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @coder taoym
 * @datetime 2021/8/27 8:48
 * @desc
 */
public interface XcxActivityOrderMapper extends BaseMapper<XcxActivityOrder> {

    /**
     * @coder taoym
     * @datetime 2021/6/13 9:55
     * @desc 自购预估收益
     */
    String chiefFee(@Param("uid") String uid,
                    @Param("status") Integer status,
                    @Param("isStatistics") Integer isStatistics,
                    @Param("prevTimeEnd") LocalDateTime prevTimeEnd);

    /**
     * @coder taoym
     * @datetime 2021/6/13 9:55
     * @desc 自购预估收益
     */
    String orderUserFee(@Param("uid") String uid,
                        @Param("status") Integer status,
                        @Param("isStatistics") Integer isStatistics,
                        @Param("prevTimeEnd") LocalDateTime prevTimeEnd);


    /**
     * @coder taoym
     * @datetime 2021/6/20 17:42
     * @desc 分页获取订单信息
     */
    List<XcxActivityOrder> getMyselfActivityOrderList(@Param("uid") String uid,
                                                      @Param("status") Integer status,
                                                      @Param("start") LocalDateTime start,
                                                      @Param("end") LocalDateTime end,
                                                      @Param("page") Integer page,
                                                      @Param("size") Integer size);

    /**
     * @coder taoym
     * @datetime 2021/6/20 17:42
     * @desc 分页获取订单信息
     */
    List<XcxActivityOrder> getTeamActivityOrderList(@Param("uid") String uid,
                                                    @Param("status") Integer status,
                                                    @Param("start") LocalDateTime start,
                                                    @Param("end") LocalDateTime end,
                                                    @Param("page") Integer page,
                                                    @Param("size") Integer size);
}
